#pragma once

#include <Arduino.h>
#include <WiFiClient.h>

uint16_t aprs_calculatePasscode(const char* call);
String aprs_formatLat(float lat);
String aprs_formatLon(float lon);

// Returns true if sent (and connected if needed)
bool aprs_sendPosition(WiFiClient &client,
                       const char* callsign,
                       const char* host,
                       uint16_t port,
                       char symTable,
                       char symChar,
                       uint16_t passcode,
                       float lat,
                       float lon,
                       const char* comment);
